package com.ruoyi.costumeShop.mapper;

import java.util.List;
import com.ruoyi.costumeShop.domain.CostumeSalesperson;
import org.apache.ibatis.annotations.Mapper;

/**
 * salespersonMapper接口
 * 
 * @author ruoyi
 * @date 2022-03-22
 */
@Mapper
public interface CostumeSalespersonMapper 
{
    /**
     * 查询salesperson
     * 
     * @param salespersonId salesperson主键
     * @return salesperson
     */
    public CostumeSalesperson selectCostumeSalespersonBySalespersonId(Long salespersonId);

    /**
     * 查询salesperson列表
     * 
     * @param costumeSalesperson salesperson
     * @return salesperson集合
     */
    public List<CostumeSalesperson> selectCostumeSalespersonList(CostumeSalesperson costumeSalesperson);

    /**
     * 新增salesperson
     * 
     * @param costumeSalesperson salesperson
     * @return 结果
     */
    public int insertCostumeSalesperson(CostumeSalesperson costumeSalesperson);

    /**
     * 修改salesperson
     * 
     * @param costumeSalesperson salesperson
     * @return 结果
     */
    public int updateCostumeSalesperson(CostumeSalesperson costumeSalesperson);

    /**
     * 删除salesperson
     * 
     * @param salespersonId salesperson主键
     * @return 结果
     */
    public int deleteCostumeSalespersonBySalespersonId(Long salespersonId);

    /**
     * 批量删除salesperson
     * 
     * @param salespersonIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCostumeSalespersonBySalespersonIds(Long[] salespersonIds);
}
